<script>
	function enableMulti() {
		if ($('#enable_multi:checked').val() !== undefined) {
			var multi = 1;
		} else {
			var multi = 0;
    	}
    	
    	$.ajax({
    		type: "POST",
    		url: "ajax.php?function=enable-multi",
    		data: "multi=" + multi,
    		// data:  $('#' + formname).serialize(),
    		success: function (msg) {
    			alert(msg);
      	}
    	});
    	return false;
  }
</script>

<?php if ($_GET['rid'] == 1) { ?>
	<input type="checkbox" id="enable_multi" value="1" style="width:15px"  onclick="enableMulti()" 
	
	<?php
		if (getOption('enable_multi') == 1) {
			echo 'checked="checked"';
		} //getOption('enable_multi') == 1
	?>/> ¿Habilitar multi-sitio?
<?php  } //$_GET['rid'] == 1 ?>
